home *** CD-ROM | disk | FTP | other *** search
- Path: solon.com!not-for-mail
- From: seebs@solutions.solon.com (Peter Seebach)
- Newsgroups: comp.lang.c
- Subject: Re: printf - adding commas to numbers
- Date: 13 Jan 1996 00:13:55 -0600
- Organization: Usenet Fact Police (Undercover)
- Message-ID: <4d7ij3$811@solutions.solon.com>
- References: <4d15eq$lc5@ixnews2.ix.netcom.com> <4d3b5l$fsm@news.infi.net> <4d66rt$cc0@cloner3.netcom.com>
- NNTP-Posting-Host: solutions.solon.com
-
- In article <4d66rt$cc0@cloner3.netcom.com>,
- Chuck Hamilton <chuckh@ix.netcom.com> wrote:
- >Adding delmiters to numbers is used everyday, everywhere, by every
- >company. I don't know of any the routinely do vertical printing
- >though. Look at all the other stuff that printf can do that almost
- >never gets used. When was the last time you used an "*" in a print
- >specifier to pass the length of the output as a variable?
-
- I use that one quite a lot, and love it dearly; it saves me the trouble
- of doing a two-pass thing to create a format string. Lovely feature.
-
- I'd kill for %<, which takes a 'char *(*)(void *)' and any other value,
- but I see no sane way to do it. Maybe if the fptr took a va_list that
- it could increment... :)
-
- >Delmiters are used pretty much any time you print numbers larger than
- >3 digits in business.
-
- True, and a nice locale-based extension, IMO.
-
- -s
- --
- Peter Seebach - seebs@solon.com - Copyright 1995 Peter Seebach.
- C/Unix proto-wizard -- C/Unix questions? Send mail for help. No, really!
- Using trn? Weird new newsgroup problem? I know the fix! Email me!
- The *other* C FAQ - ftp taniemarie.solon.com /pub/c/afq - Not A Flying Toy
-